home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1988
/
12
/
ctalk.asc
next >
Wrap
Text File
|
1988-12-31
|
2KB
|
81 lines
_C-TALK_
by Ernie Tello
[EXAMPLE 1]
Ctalk Foundation Classes = Table 1
The foundation classes are listed in hierarchical format.
Object
Assoc
Container
Buffer
Stream
ByteArray
Collection
OrdCollect
Stack
Set
Dictionary
IntArray
String
=================================================================
Text Window Classes -- Table 2
The additional classes arranged hierarchically.
Browser
File
Menu
Mouse
Notifier
ScreenMgr
TxPoint
Window
ButtonWin
ItemWin
Scrollbar
StdWindow
ListWindow
HorListWin
PopUp
Response
TxtWindow
TxEditor
WinManager
=================================================================
Listing 1
initialize
/* Initialize the reciever: set up MetaWindow, win_list and create root */
/* window. */
{ id newWin;
int w, h;
extern id Menu;
@ScreenMgr create_ &Screen@;
self->color = @Screen color@;
w = @Screen getXmax@; h = @Screen getYmax@;
@Mouse create_ &Mcursor@; /* init mouse service routine */
@Mcursor setColor_ self->color@;
@OrdCollect new_ &self->winList size_ 25@;
@Window new_ &newWin par_ NIL x_ 0 y_ 0 wdth_ w hght_ h@;
self->rootWin = newWin;
@self->rootWin getAbsRegion_ &mbox@; /* init movement box */
/*@self->winList add_ self->rootWin@;*/
self->activeWin = self->rootWin;
Dispatcher = @Notifier create@; /* an instance of the event manager */
}
=================================================================